package com.lx.mapper;

import com.lx.entity.User;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 段誉
 * @create 2019-04-11 9:49
 */
@Mapper
public interface UserMapper {

  /**
   * 根据用户id查询
   * @param userId
   * @return
   */
  @Select("select user_id as userId, username from user where user_id=#{userId} limit 1")
  User userQuery(Integer userId);
}
